package bancosys.tec.persist.span.fat;

import bancosys.tec.persist.Persistable;
import bancosys.tec.persist.span.SpanAwareBean;
import bancosys.tec.persist.span.SpanAwareDAO;

/**
 * @author takeshi
 * @param <T>
 */
public class SimpleSpanAwareDAO<T extends SpanAwareBean & Persistable> extends SpanAwareDAO<T> {

    private final Class<? extends T> targetClass;

    /**
     * C'tor
     * 
     * @param targetClass the target class
     */
    public SimpleSpanAwareDAO(Class<? extends T> targetClass) {
        super();
        this.targetClass = targetClass;
    }

    /**
     * {@inheritDoc}
     * 
     * @see bancosys.tec.persist.dao.BaseDAO#getPersistableClass()
     */
    @Override
    protected Class<? extends T> getPersistableClass() {
        return targetClass;
    }

}
